{{- $cfg := (site.Params) -}}

{{ ((printf "<?xml version='1.0' encoding='utf-8'?>") | safeHTML) }}
<OpenSearchDescription xmlns="http://a9.com/-/spec/opensearch/1.1/"
                       xmlns:ie="http://schemas.microsoft.com/Search/2008/"
                       xmlns:moz="http://www.mozilla.org/2006/browser/search/">
  <ShortName>{{ (site.Title) }}</ShortName>
  <Description>{{ ($cfg.description) }}</Description>
  <Contact>{{ ($cfg.author.email) }}</Contact>
  <LongName>{{ (site.Title) }} | {{ ((site.Language.Lang) | upper) }}</LongName>
  <Image height="64" width="64" type="image/png">{{ ("favicon-64.png" | absURL) }}</Image>
  <Image height="16" width="16" type="image/png">{{ ("favicon-16.png" | absURL) }}</Image>
  <Developer>{{ ($cfg.author.name) }}</Developer>
  <Attribution>{{ (site.Title) }} © {{ (now.UTC.Format "2006") }}</Attribution>
  <SyndicationRight>open</SyndicationRight>
  <AdultContent>false</AdultContent>
  <Language>{{ (site.LanguageCode) }}</Language>
  <OutputEncoding>UTF-8</OutputEncoding>
  <InputEncoding>UTF-8</InputEncoding>
  <moz:SearchForm>https://google.com/search?as_sitesearch={{ ((urls.Parse (site.BaseURL)).Host) }}&amp;q={searchTerms}</moz:SearchForm>
  <Url type="text/html" method="get"
       template="https://google.com/search?as_sitesearch={{ ((urls.Parse (site.BaseURL)).Host) }}&amp;q={searchTerms}"/>
  <Url type="application/opensearchdescription+xml" rel="self"
       template='{{ ("opensearch.xml" | absLangURL) }}'/>
</OpenSearchDescription>
